CC=g++
CFLAGS=-std=c++11 -g
OBJS=main.o process.o scheduler.o Event.o

all: $(OBJS)
	$(CC) $(CFLAGS) -o sched $(OBJS)

main.o: main.cpp
	$(CC) $(CFLAGS) -c main.cpp

process.o: process.cpp
	$(CC) $(CFLAGS) -c process.cpp

scheduler.o: scheduler.cpp
	$(CC) $(CFLAGS) -c scheduler.cpp

Event.o: Event.cpp
	$(CC) $(CFLAGS) -c Event.cpp

clean:
	rm -f $(OBJS) sched
